<template>
  <div class="auth-layout">
    <div class="auth-container">
      <div class="auth-header">
        <img src="../assets/logo.png" alt="TMS Logo" class="auth-logo">
        <h2 class="auth-title">TMS 运输管理系统</h2>
      </div>
      
      <div class="auth-content">
        <router-view />
      </div>
      
      <div class="auth-footer">
        <p>© {{ currentYear }} TMS 运输管理系统 - 版权所有</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import { computed } from 'vue'

// 当前年份
const currentYear = computed(() => {
  return new Date().getFullYear()
})
</script>

<style scoped>
.auth-layout {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f2f5;
  background-image: url('../assets/auth-bg.jpg');
  background-size: cover;
  background-position: center;
}

.auth-container {
  width: 400px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  height: 60px;
  margin-bottom: 15px;
}

.auth-title {
  font-size: 22px;
  color: #303133;
  margin: 0;
}

.auth-content {
  margin-bottom: 30px;
}

.auth-footer {
  text-align: center;
  color: #909399;
  font-size: 14px;
}
</style>
